<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href='<spring:url value="/resources/images/favicon.ico"/>' />
<link href='<spring:url value="/resources/bootstrap/css/bootstrap.min.css"/>' rel="stylesheet" />
<link href='<spring:url value="/resources/css/full.css"/>' rel="stylesheet" />
<title>忘打卡申请-考勤系统</title>
<script type="text/javascript" src='<spring:url value="/resources/js/3rd/require.min.js" />'
	data-main='<spring:url value="/resources/js/sign/sign.js"/>'></script>
</head>
<body>
	<div class="container">
		<jsp:include page="../topMenu.jsp" />
		<div class="panel panel-default">
			<div class="panel-heading">忘打卡申请</div>
			<div class="panel-body">
				<form:form modelAttribute="apply" method="post">
					<t:bootstrapInput name="uid" id="uid" label="申&nbsp;&nbsp;请&nbsp;&nbsp;人" placeHolder="00001" />
					<t:bootstrapDate name="abnormalDate" id="abnormalDate" label="忘刷日期" placeHolder="2015-01-05" />
					<spring:bind path="signType">
						<c:set var="cssError" value="${status.error ? ' has-error has-feedback' : ''}" />
					</spring:bind>
					<div class="form-group${cssError}">
						<form:radiobuttons path="signType" items="${signTypes}" />
						<form:errors path="signType" cssClass="text-danger form-control-feedback" />
					</div>
					<t:bootstrapTime name="actualSignTime" id="actualSignTime" label="实际时间" placeHolder="09:01" />
					<t:bootstrapInput name="reason" id="reason" label="证明方式" placeHolder="老白8:55到时看到我已在岗/欣伟18:35下班时看到我还在岗" />
					<div class="alert alert-warning" role="alert">我承诺以上信息真实可信！</div>
					<div class="form-group">
						<button type="submit" class="btn btn-danger">提交申请</button>
						<a href='javascript:history.back()' class="btn btn-default">返回</a>
					</div>
				</form:form>
			</div>
		</div>
	</div>
</body>
</html>